From: Daniel van Vugt Date: Wed, 1 Jul 2020 10:51:33 +0000 (+0800) Subject: background: Use actor.content.background X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~180 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=75235624b2d7d84c4173846e526a1e9beaaccb8d;p=gnome-shell.git background: Use actor.content.background Because actor.background no longer exists and emitted errors when referenced. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2949 https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1343 --- diff --git a/js/ui/background.js b/js/ui/background.js index b7bf2b1a0..20f5e8912 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -712,13 +712,18 @@ var BackgroundManager = class BackgroundManager { } let newBackgroundActor = this._createBackgroundActor(); - newBackgroundActor.vignette_sharpness = this.backgroundActor.vignette_sharpness; - newBackgroundActor.brightness = this.backgroundActor.brightness; + + const oldContent = this.backgroundActor.content; + const newContent = newBackgroundActor.content; + + newContent.vignette_sharpness = oldContent.vignette_sharpness; + newContent.brightness = oldContent.brightness; + newBackgroundActor.visible = this.backgroundActor.visible; this._newBackgroundActor = newBackgroundActor; - let background = newBackgroundActor.background; + const { background } = newBackgroundActor.content; if (background.isLoaded) { this._swapBackgroundActor();